angular.module('ionicApp.router', [])

.config(function($stateProvider, $urlRouterProvider) {
    $urlRouterProvider.when("", "diary")

    $stateProvider.state('diary', {
            url: "diary",
            templateUrl: "templates/diary/diary.html",
            controller: "diaryCtrl"
        })
        .state('contact', {
            url: "contact",
            templateUrl: "templates/contact/contact.html",
            controller: "contactCtrl"
        })
        .state('setting', {
            url: "setting",
            templateUrl: "templates/setting/setting.html",
            controller: "settingCtrl"
        })
});
